import React from 'react';
import { Input } from 'antd';
import PropTypes from 'prop-types';
const defaultProps = {
  placeholder: '请选择',
  size: 'middle',
  allowClear: true,
  options: [],
  style: {
    width: 200,
  },
};
const mInput = ({ config }) => {
  const props = { ...defaultProps, ...config };
  return <Input {...props} />;
};
mInput.propTypes = {
  config: PropTypes.object,
};
/* 传值的默认值设置 */
mInput.defaultProps = {
  config: {
    placeholder: '请输入',
    size: 'middle',
    defaultValue: '',
    style: {
      width: 200,
    },
  },
};
export default mInput;
